<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core_1_1" %>
<%--
  Created by IntelliJ IDEA.
  User: Wang Ziming
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <button id="btntest">测试</button>
<%--    <%@include file="/WEB-INF/adminInfo/test.jsp"%>--%>
    <hr>
    <p>from this page:<i id="ct"></i></p>
</body>
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script>
    $(function () {
        $("#btntest").click(function () {
            //测试
            $.post("/postTest",{
                name:"name",
                pass:"pass"
            },function (data) {
                alert("触发");
                $("#ct").html(data);
                console.log("post调用成功");
            });
            console.log("成功！");
        });
    })
</script>
</html>
